ArcPad Applet File Schema
SYSTEMOBJECTS Element
See Also  Send comments on this topic.
ArcPad Applet File Schema > ArcPad Element > APPLET Element : SYSTEMOBJECTS Element

Glossary Item Box

Description

Used in applet (*.apa) files, default configuration (ArcPad.apx) files, and layer definitions to associate scripts with ArcPad system object events.

Diagram

RANGEFINDER Element NAVIGATION Element MAP Element GPS Element AUX Element APPLICATION Element Sequence SYSTEMOBJECTS Element

Overview

SYSTEMOBJECTS
Used in applet (*.apa) files, default configuration (ArcPad.apx) files, and layer definitions to associate scripts with ArcPad system object events.
Sequence
APPLICATION
Used to specify scripts to call when Application object events occur.
AUX

 The parent element for AUX port settings in ArcPadPrefs.apx. Used to specify script subroutines to call when AUX events occur.

GPS
Used to specify GPS preferences and script subroutines to call when GPS events occur.
onaveragestart optional xs:string
Specify the script to run when this event occurs.
onaveragestop optional xs:string
Specify the script to run when this event occurs.
onclose optional xs:string
Specify the script to run when this event occurs
onexevent optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs
onposition optional xs:string
Specify the script to run when this event occurs.
onsentence optional xs:string
Specify the script to run when this event occurs.
MAP
When parent element is SYSTEMOBJECTS, MAP is used to specify scripts to call when Map object events occur.
onafterdraw optional xs:string
Specify the script to run when this event occurs.
onafterlayerdraw optional xs:string
Specify the script to run when this event occurs.
onbeforedraw optional xs:string
Specify the script to run when this event occurs.
onbeforelayerdraw optional xs:string
Specify the script to run when this event occurs.
onclose optional xs:string
Specify the script to run when this event occurs
ondrawingcancelled optional xs:string
Specify the script to run when this event occurs.
onfeatureadded optional xs:string
Specify the script to run when this event occurs.
onfeaturechanged optional xs:string
Specify the script to run when this event occurs.
onfeaturedeleted optional xs:string
Specify the script to run when this event occurs.
onfeaturegeometrychanged optional xs:string
Specify the script to run when this event occurs.
onidentify optional xs:string
Specify the script to run when this event occurs.
onnew optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs
onpointerdown optional xs:string
Specify the script to run when this event occurs.
onpointermodechanged optional
Specify the script to run when this event occurs.
onpointermove optional xs:string
Specify the script to run when this event occurs.
onpointerup optional xs:string
Specify the script to run when this event occurs.
onsave optional xs:string
Specify the script to run when this event occurs.
onselectionchanged optional xs:string
Specify the script to run when this event occurs.
NAVIGATION
Used to specify scripts to call when Navigation object events occur.
onclose optional xs:string
Specify the script to run when this event occurs
onexevent optional xs:string
Specify the script to run when this event occurs.
onmeasurement optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs

Examples

Copy Code
<?xml version="1.0" encoding="UTF-8" ?>
<ArcPad> 
  <CONFIG>
    <SYSTEMOBJECTS>
      <APPLICATION onstartup="Call LoadServiceForm" />
      <GPS onposition="Call LogGPSLocation" />
    </SYSTEMOBJECTS>
    <TOOLBARS>
      <TOOLBAR name="main" visible="false" />
      <TOOLBAR name="browse" visible="false" />
      <TOOLBAR name="draw" visible="false" />
      <TOOLBAR name="tlbCustom1" caption="Custom Toolbar" visible="true" />
        <TOOLBUTTON name="tlLoadData" onclick="Call LoadDataset" image="load.bmp" />
        <TOOLBUTTON name="tlAddData" onclick="Call AddData" image="add.bmp" />
        <TOOLBUTTON name="tlUpdateData" onclick="Call UpdateAttributes" image="update.bmp" />
      </TOOLBAR>
    </TOOLBARS>
    <STATUSBAR visible="true" scale="false" units="true" />
  </CONFIG> 
  <SCRIPT src="ArcPad.vbs" />
</ArcPad>  

Restrictions

The APPLICATION child element cannot be used in layer definition files (*.apl).

Source

<xs:element name="SYSTEMOBJECTS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="APPLICATION" />
      <xs:element ref="AUX" />
      <xs:element name="GPS">
        <xs:complexType>
          <xs:attribute ref="onaveragestart" />
          <xs:attribute ref="onaveragestop" />
          <xs:attribute ref="onclose" />
          <xs:attribute ref="onexevent" />
          <xs:attribute ref="onopen" />
          <xs:attribute ref="onposition" />
          <xs:attribute ref="onsentence" />
        </xs:complexType>
      </xs:element>
      <xs:element name="MAP">
        <xs:complexType>
          <xs:attribute ref="onafterdraw">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onafterlayerdraw" />
          <xs:attribute ref="onbeforedraw">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onbeforelayerdraw">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onclose" />
          <xs:attribute ref="ondrawingcancelled">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onfeatureadded">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onfeaturechanged">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onfeaturedeleted">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onfeaturegeometrychanged">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onidentify">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onnew">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onopen">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onpointerdown">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onpointermodechanged">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onpointermove">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onpointerup">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onsave">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute ref="onselectionchanged">
            <xs:annotation>
              <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element ref="NAVIGATION"></xs:element>
      <xs:element name="RANGEFINDER">
        <xs:complexType>
          <xs:attribute ref="onclose" />
          <xs:attribute ref="onexevent" />
          <xs:attribute ref="onmeasurement" />
          <xs:attribute ref="onopen" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.